<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title></title>
  </head>
  <body>
    <div id="app">
      <div :class="[activeClass, errorClass]">111111111</div>
      <div :class="[isActive ? activeClass : '', errorClass]">222222222</div>
      <div :class="[{ active: isActive }, errorClass]">33333333</div>
    </div>

    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script>
      const { createApp, ref, reactive } = Vue;

      createApp({
        setup() {
          const isActive = ref(true);
          const activeClass = ref("active");
          const errorClass = ref("text-danger");

          return {
            isActive,
            activeClass,
            errorClass,
          };
        },
      }).mount("#app");
    </script>
  </body>
</html>
